import request from "../utils/request"

export function getPro(count, limitNum) {
    return request.get('/pro/list', {
        params: {
            count,
            limitNum
        }
    }
    )
}

export function changekill(proid,type,flag){
    return request.post('/pro/updateFlag',{
        proid,
        type,
        flag:flag ===1
    })
}

export function getShang(){
    return request.get('/pro/getCategory')
}
export function shixuan(category,search){
    return request.post('/pro/searchPro',{
        category,
        search
    })
}

